int findLengthOfLCIS(vector<int>& nums) {
    int n = nums.size();
    int maxlen = 0;
    for (int l = 0; l < n; l++) {
        int r = l + 1;
        while (r < n && nums[r] > nums[r - 1]) {
            r++;
        }
        maxlen = max(r - l, maxlen);
    }
    return maxlen;
}
